package com.chainyoung.common.appcommon.ui;

import com.chainyoung.common.appcommon.entity.CommonList;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;

import java.util.TreeMap;

import io.reactivex.Flowable;

public interface CommonListContract {

    interface View<T> extends IView {

        void onGetListSuccess(CommonList<T> data);

        void onGetListFailed(int errorCode,String message);

    }

    interface Model<T> extends IModel {
        Flowable<CommonList<T>> getList(TreeMap<String, Object> map);
    }
}
